package com.example.spring.multi.basic.design.business;

import org.springframework.stereotype.Component;

import java.lang.annotation.Annotation;

@Component
public class PayListener implements ApplicationListener<PayApplicationEvent> {

    @Override
    public void onApplicationEvent(PayApplicationEvent event) {
        String message = event.getMessage();
        System.out.println("监听到PayApplicationEvent事件，消息为：" + message);
    }

    @Override
    public Class<?>[] value() {
        return new Class[0];
    }

    @Override
    public Class<?>[] classes() {
        return new Class[0];
    }

    @Override
    public String condition() {
        return null;
    }

    @Override
    public String id() {
        return null;
    }

    @Override
    public Class<? extends Annotation> annotationType() {
        return null;
    }

}
